import java.util.Scanner;

public class demo1 {
    //大小写转换
    //将输入的字符串全部转换为小写字母
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextLine()) {
            String result = scanner.nextLine();
            System.out.println(result.toLowerCase());
        }
    }


    //斐波那契数列
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int ret = fib1(in.nextInt());
            System.out.println(ret);
        }
    }

    public static int fib1(int i) {
        if (i <= 2) {
            return 1;
        } else {
            return fib1(i - 1) + fib1(i - 2);
        }
    }

    public static int fib2(int n) {
        int[] array = new int[n + 1];
        array[0] = 0;
        array[1] = 1;
        array[2] = 1;
        for (int i = 3; i <= n; i++) {
            array[i] = array[i - 1] + array[i - 2];
        }
        return array[n];
    }

    public static int fib3(int n) {
        while (n == 1 || n == 2) {
            return 1;
        }
        int a = 1;
        int b = 1;
        int c = 0;
        for (int i = 3; i <= n; i++) {
            c = a + b;
            a = b;
            b = c;
        }
        return c;
    }





}
